From: Giovanni Campagna Date: Sun, 20 Nov 2011 10:57:29 +0000 (+0100) Subject: WorkspaceThumnail: fix typo X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7289 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b1064cbe50630c8fcdd671becd2659aa7afd46d4;p=gnome-shell.git WorkspaceThumnail: fix typo An if is missing, causing the subsequent expression to evaluate to nothing, and the invocation it should be protect to be unconditional. --- diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js index 3885d85cc..504d32bc3 100644 --- a/js/ui/workspaceThumbnail.js +++ b/js/ui/workspaceThumbnail.js @@ -597,7 +597,7 @@ ThumbnailsBox.prototype = { // ... and bam, a workspace, good as new. source.metaWindow.change_workspace_by_index(newWorkspaceIndex, true, time); - else (source.shellWorkspaceLaunch) + else if (source.shellWorkspaceLaunch) source.shellWorkspaceLaunch({ workspace: newWorkspaceIndex, timestamp: time });